package isBoomerang;

class Solution {
    public boolean isBoomerang(int[][] points) {
        int[] v1 = {points[1][0] - points[0][0], points[1][1] - points[0][1]};
        int[] v2 = {points[2][0] - points[0][0], points[2][1] - points[0][1]};
        return v1[0] * v2[1] - v1[1] * v2[0] != 0;
    }
}
// ax+by+c=0   ax0+by0+c
// y=kx+b ---- kx-y+b=0
// kx1-y1+b=0--- y1-kx1;
// y=0.4x+b 92 72
// b=y-0.4x= 72-0.4*92=35.2  y=0.4x+35.2 27 46
// y3=k*x3=    0.4 35.199999999999996 -7.105427357601002E-15
//-0.4 41.8 -3.8146973E-6